import React, { Component } from 'react';
import { HashRouter,Route,Switch} from 'react-router-dom';
import Admin from './pages/admin/admin';
import Login from './pages/login/login';
import SignIn from './pages/login/signin';
import ForgetPwd from './pages/login/forgetPwd';
import UserCenter from './pages/userCenter/userCenter';


class App extends Component {
  render() {
    return (
      <HashRouter>
        <Switch>
          <Route exact path='/login' component={Login}></Route>
          <Route exact path='/signin' component={SignIn}></Route>
          <Route exact path='/forgetpwd' component={ForgetPwd}></Route>
          <Route path='/usercenter' component={UserCenter}></Route>
          <Route path='/' component={Admin}></Route>
        </Switch>  
      </HashRouter>
    );
  } 
}

export default App;
